{% extends "base.html" %}
{% load cms_tags %}
{% block head_quote %}

<meta name="keywords" content="电商优惠,便宜货,优惠信息,打折信息,优惠券,京东优惠信息" />
<meta name="description" content="{% page_attribute "meta_description" %}" />
<link rel="shortcut icon" href="/static/img/favicon.png">
<!-- Bootstrap core CSS -->
<link href="//qncdn.ztm.me/static/bs/3.3.7/bootstrap.min.css" rel="stylesheet">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="//v3.bootcss.com/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="//v3.bootcss.com/examples/offcanvas/offcanvas.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="//v3.bootcss.com/assets/js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<script type="text/javascript" src="//libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="//qncdn.ztm.me/static/bs/3.3.7/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="//v3.bootcss.com/assets/js/ie10-viewport-bug-workaround.js"></script>
<script src="//v3.bootcss.com/examples/offcanvas/offcanvas.js"></script>
{% endblock %}

<!-- block base_content begin -->
{% block content %}
  {% block messages %}
    {% if messages %}
      {% for message in messages %}
        <div style="margin-bottom:0px;" class="alert {% if message.tags %} alert-{{ message.tags }} {% endif %}">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          <strong>{{ message|safe }}</strong>
        </div>
      {% endfor %}
    {% endif %}
  {% endblock %}
  <!-- block top_nav begin-->
  {% block nav %}
  <nav class="navbar navbar-fixed-top navbar-inverse">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="/">ZTM.ME</a>
      </div>
      <div id="navbar" class="collapse navbar-collapse">
        <ul class="nav navbar-nav">
          <li {% if request.path == '/' %} class="active" {% endif %}><a href="/">首页</a></li>
          {% comment %}
          <li {% if 'youhui' in request.path %} class="active" {% endif %}><a href="/youhui">实时优惠</a></li>
          {% endcomment %}
          <li><a href="/contactus">联系我们</a></li>
        </ul>
      </div><!-- /.nav-collapse -->
    </div><!-- /.container -->
  </nav><!-- /.navbar -->
  {% endblock %}
  <!-- block top_nav end-->
  <!-- block content begin-->
  {% block pc_content %}
    {% placeholder "pc_content" %}
  {% endblock %}
  <!-- block content end-->
  <!-- block footer begin -->
    {% block footer %}
      {% static_placeholder 'FOOTER' or %}
      <div class="container">
        <hr>
        <footer>
          <p>&copy; www.ztm.me 2017 <a href="http://www.beian.miit.gov.cn" target="_blank">苏ICP备17042377号</a> 当前路径:{{ request.path }}</p>
          <p>联系我们: <a mailto="service@ztm.me">service(at)ztm.me</a></p>
        </footer>
      </div>
      {% endstatic_placeholder %}
    {% endblock %}
  <!-- block footer end -->

  {% block footer_script %}
  {% placeholder "FOOTER_SCRIPT" %}
  {% endblock %}

{% endblock %}
<!-- block base_content end -->
